﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace badminton
{
    public partial class WebMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                /////////
                this.HyperLink1.Text = "首 &nbsp;&nbsp;&nbsp;页";
                this.HyperLink1.NavigateUrl = "~/";

                this.HyperLink2.Text = "球馆介绍";
                this.HyperLink2.NavigateUrl = "~/pages/halldetail.aspx";

                this.LinkButton1.Text = "培训介绍";

                this.HyperLink4.Text = "我的培训";
                this.HyperLink4.NavigateUrl = "~/pages/MyTraining.aspx";

            }
        }

        protected void OnLinkButton1(object sender, CommandEventArgs e)
        {

            TrainingSearchSession trainingSearch = new TrainingSearchSession();
            trainingSearch.m_cityAreaId = Convert.ToInt32(-1);
            trainingSearch.m_hallId = Convert.ToInt32(-1);
            trainingSearch.m_trainingCatId = Convert.ToInt32(-1);
            trainingSearch.m_searchStr = "";

            Session["TrainingSearch"] = trainingSearch;

            Response.Redirect("~/pages/trainingsearchresult.aspx");
        }

    }
}
